;Assembler header file for Parallel
;written by DefMod (Dec 31 2005) on Sat Dec 31 14:01:39 2005
;Jonathan Coxhead, jonathan@doves.demon.co.uk, 12 May 1995

        [       :LNOT: :DEF: Parallel_Hdr
        GBLS    Parallel_Hdr

        [       :LNOT: :DEF: Get_Types
        GBLS    Get_Types
        ]
        [       :LNOT: :DEF: Types_Hdr
Get_Types                       SETS    "GET oslib/Types.Hdr"
        |
Get_Types                       SETS    ""
        ]
        $Get_Types

        [       :LNOT: :DEF: Get_OS
        GBLS    Get_OS
        ]
        [       :LNOT: :DEF: OS_Hdr
Get_OS                          SETS    "GET oslib/OS.Hdr"
        |
Get_OS                          SETS    ""
        ]
        $Get_OS

;Symbols for SWI's and SWI reason codes
XParallel_HardwareAddress       *       &62EC0
Parallel_HardwareAddress        *       &42EC0

XParallel_Op                    *       &62EC1
Parallel_Op                     *       &42EC1

ParallelOp_Read                 *       &0
   ;Entry
   ;  R0 = &0
   ;Exit
   ;  R1 = data_register (Bits)
   ;  R2 = status_register (Bits)

ParallelOp_WriteData            *       &1
   ;Entry
   ;  R0 = &1
   ;  R1 = data (Bits)

ParallelOp_WriteControl         *       &2
   ;Entry
   ;  R0 = &2
   ;  R1 = eor_mask (Bits)
   ;  R2 = and_mask (Bits)
   ;Exit
   ;  R1 = old_control (Bits)
   ;  R2 = new_control (Bits)

        ]
        END
